package com.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.admin.dtos.ChannelDto;
import com.usian.model.admin.pojos.AdChannel;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.user.pojos.ApAuthor;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

@Api(value = "频道管理",tags = "channel",description = "频道管理Apl")
public interface AdChannelService extends IService<AdChannel> {

    @ApiOperation("频道分页管理")
    public ResponseResult findByNameAndPage(ChannelDto channelDto);

    @ApiOperation("频道删除管理")
    public ResponseResult del( Integer id);

    @ApiOperation("频道添加管理")
    public ResponseResult saveAdChannel(AdChannel adChannel);

    @ApiOperation("频道修改管理")
    public ResponseResult update( AdChannel adChannel);


    public AdChannel findById(@PathVariable("id") Integer id);

}
